'''
Created on May 30, 2012

@author: mupet
'''

class AlertsTabListener(object):
    '''
    classdocs
    '''

    instance = None

    def __init__(self):
        '''
        Constructor
        '''
        AlertsTabListener.instance = self
    
    def setListBox(self, listBox):
        self.listBox = listBox

    def addLine(self, text):
        items=self.listBox.GetItems()
        items.insert(0, text)
        self.listBox.Clear()
        for line in items:
            self.listBox.Append(line)
            
    @staticmethod
    def getInstance():
        return AlertsTabListener.instance